home *** CD-ROM | disk | FTP | other *** search
- Path: news.cyberstore.ca!news
- From: ken.wilson@cyberstore.ca (Ken Wilson)
- Newsgroups: comp.lang.c++
- Subject: Re: class object member & Inherit?
- Date: Sat, 03 Feb 1996 01:25:01 GMT
- Organization: The Flowered Alcatraz
- Message-ID: <4eucs6$iiv@sulla.cyberstore.ca>
- References: <4etn91$gud@netnews.hinet.net>
- NNTP-Posting-Host: yyj-ppp-19.cyberstore.ca
- X-Newsreader: Forte Free Agent v0.46
-
- donny@ms1.hinet.net (Donny Lee) wrote:
-
- >
- > Here comes another question, Class object member and Inherit.
- >
- > class Word {
- > :
- > String str; // another class
- > };
-
- In this snippet your class contains a String class object as a member.
-
- > ------------------
- > class Word : private String {
- > :
- > :
- > }
-
- In this snippet your class is derived from the String class
-
-
- Ken Wilson
- ken.wilson@cyberstore.ca
-
- "C program. C program run. Run, program, run. Pleeaasse!"
-
-